<html>
<body>
<style type="text/css">
div[class=test] {
  color: red;
  font-weight: bold;
}
</style>

<div class="test">
TEST1
</div><!--#test-->

</body>
</html>